import QtQuick
import QtQuick.Controls


Button{
    id: control
    property url normalImage : ""
    property url hoveredImage : ""
    implicitHeight: 20
    implicitWidth: 95

    contentItem: Text{
        color: control.hovered ? Qt.lighter("#CEDCE6") : "#CEDCE6"
        font.pixelSize: 16
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
        leftPadding: 25
        text: control.text
    }
    background: Item{
        width: control.width
        height: control.height
        Image{
            width: 20
            height: 20
            source: control.hovered ? control.hoveredImage : control.normalImage
        }
    }
}
